//定义数据state类型
import type { RouteRecordRaw } from 'vue-router'
import type { ICategoryObj } from '@/api/product/attr/type'

export interface UserState {
  token: string | null
  menuRoutes: RouteRecordRaw[]
  username: string
  avatar: string
}

//定义分类仓库state对象的ts类型
export interface ICategoryState {
  c1Id: number | string
  c1Attrs: ICategoryObj[]
  c2Id: number | string
  c2Attrs: ICategoryObj[]
  c3Id: number | string
  c3Attrs: ICategoryObj[]
}
